package com.hebeu.device.pojo;

import java.util.ArrayList;
import java.util.List;

public class DPartExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public DPartExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Integer value) {
            addCriterion("id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Integer value) {
            addCriterion("id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Integer value) {
            addCriterion("id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Integer value) {
            addCriterion("id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Integer value) {
            addCriterion("id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Integer> values) {
            addCriterion("id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Integer> values) {
            addCriterion("id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Integer value1, Integer value2) {
            addCriterion("id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Integer value1, Integer value2) {
            addCriterion("id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andPartNameIsNull() {
            addCriterion("part_name is null");
            return (Criteria) this;
        }

        public Criteria andPartNameIsNotNull() {
            addCriterion("part_name is not null");
            return (Criteria) this;
        }

        public Criteria andPartNameEqualTo(String value) {
            addCriterion("part_name =", value, "partName");
            return (Criteria) this;
        }

        public Criteria andPartNameNotEqualTo(String value) {
            addCriterion("part_name <>", value, "partName");
            return (Criteria) this;
        }

        public Criteria andPartNameGreaterThan(String value) {
            addCriterion("part_name >", value, "partName");
            return (Criteria) this;
        }

        public Criteria andPartNameGreaterThanOrEqualTo(String value) {
            addCriterion("part_name >=", value, "partName");
            return (Criteria) this;
        }

        public Criteria andPartNameLessThan(String value) {
            addCriterion("part_name <", value, "partName");
            return (Criteria) this;
        }

        public Criteria andPartNameLessThanOrEqualTo(String value) {
            addCriterion("part_name <=", value, "partName");
            return (Criteria) this;
        }

        public Criteria andPartNameLike(String value) {
            addCriterion("part_name like", value, "partName");
            return (Criteria) this;
        }

        public Criteria andPartNameNotLike(String value) {
            addCriterion("part_name not like", value, "partName");
            return (Criteria) this;
        }

        public Criteria andPartNameIn(List<String> values) {
            addCriterion("part_name in", values, "partName");
            return (Criteria) this;
        }

        public Criteria andPartNameNotIn(List<String> values) {
            addCriterion("part_name not in", values, "partName");
            return (Criteria) this;
        }

        public Criteria andPartNameBetween(String value1, String value2) {
            addCriterion("part_name between", value1, value2, "partName");
            return (Criteria) this;
        }

        public Criteria andPartNameNotBetween(String value1, String value2) {
            addCriterion("part_name not between", value1, value2, "partName");
            return (Criteria) this;
        }

        public Criteria andPartTypeIsNull() {
            addCriterion("part_type is null");
            return (Criteria) this;
        }

        public Criteria andPartTypeIsNotNull() {
            addCriterion("part_type is not null");
            return (Criteria) this;
        }

        public Criteria andPartTypeEqualTo(String value) {
            addCriterion("part_type =", value, "partType");
            return (Criteria) this;
        }

        public Criteria andPartTypeNotEqualTo(String value) {
            addCriterion("part_type <>", value, "partType");
            return (Criteria) this;
        }

        public Criteria andPartTypeGreaterThan(String value) {
            addCriterion("part_type >", value, "partType");
            return (Criteria) this;
        }

        public Criteria andPartTypeGreaterThanOrEqualTo(String value) {
            addCriterion("part_type >=", value, "partType");
            return (Criteria) this;
        }

        public Criteria andPartTypeLessThan(String value) {
            addCriterion("part_type <", value, "partType");
            return (Criteria) this;
        }

        public Criteria andPartTypeLessThanOrEqualTo(String value) {
            addCriterion("part_type <=", value, "partType");
            return (Criteria) this;
        }

        public Criteria andPartTypeLike(String value) {
            addCriterion("part_type like", value, "partType");
            return (Criteria) this;
        }

        public Criteria andPartTypeNotLike(String value) {
            addCriterion("part_type not like", value, "partType");
            return (Criteria) this;
        }

        public Criteria andPartTypeIn(List<String> values) {
            addCriterion("part_type in", values, "partType");
            return (Criteria) this;
        }

        public Criteria andPartTypeNotIn(List<String> values) {
            addCriterion("part_type not in", values, "partType");
            return (Criteria) this;
        }

        public Criteria andPartTypeBetween(String value1, String value2) {
            addCriterion("part_type between", value1, value2, "partType");
            return (Criteria) this;
        }

        public Criteria andPartTypeNotBetween(String value1, String value2) {
            addCriterion("part_type not between", value1, value2, "partType");
            return (Criteria) this;
        }

        public Criteria andPriceIsNull() {
            addCriterion("price is null");
            return (Criteria) this;
        }

        public Criteria andPriceIsNotNull() {
            addCriterion("price is not null");
            return (Criteria) this;
        }

        public Criteria andPriceEqualTo(Double value) {
            addCriterion("price =", value, "price");
            return (Criteria) this;
        }

        public Criteria andPriceNotEqualTo(Double value) {
            addCriterion("price <>", value, "price");
            return (Criteria) this;
        }

        public Criteria andPriceGreaterThan(Double value) {
            addCriterion("price >", value, "price");
            return (Criteria) this;
        }

        public Criteria andPriceGreaterThanOrEqualTo(Double value) {
            addCriterion("price >=", value, "price");
            return (Criteria) this;
        }

        public Criteria andPriceLessThan(Double value) {
            addCriterion("price <", value, "price");
            return (Criteria) this;
        }

        public Criteria andPriceLessThanOrEqualTo(Double value) {
            addCriterion("price <=", value, "price");
            return (Criteria) this;
        }

        public Criteria andPriceIn(List<Double> values) {
            addCriterion("price in", values, "price");
            return (Criteria) this;
        }

        public Criteria andPriceNotIn(List<Double> values) {
            addCriterion("price not in", values, "price");
            return (Criteria) this;
        }

        public Criteria andPriceBetween(Double value1, Double value2) {
            addCriterion("price between", value1, value2, "price");
            return (Criteria) this;
        }

        public Criteria andPriceNotBetween(Double value1, Double value2) {
            addCriterion("price not between", value1, value2, "price");
            return (Criteria) this;
        }

        public Criteria andNumberIsNull() {
            addCriterion("number is null");
            return (Criteria) this;
        }

        public Criteria andNumberIsNotNull() {
            addCriterion("number is not null");
            return (Criteria) this;
        }

        public Criteria andNumberEqualTo(Integer value) {
            addCriterion("number =", value, "number");
            return (Criteria) this;
        }

        public Criteria andNumberNotEqualTo(Integer value) {
            addCriterion("number <>", value, "number");
            return (Criteria) this;
        }

        public Criteria andNumberGreaterThan(Integer value) {
            addCriterion("number >", value, "number");
            return (Criteria) this;
        }

        public Criteria andNumberGreaterThanOrEqualTo(Integer value) {
            addCriterion("number >=", value, "number");
            return (Criteria) this;
        }

        public Criteria andNumberLessThan(Integer value) {
            addCriterion("number <", value, "number");
            return (Criteria) this;
        }

        public Criteria andNumberLessThanOrEqualTo(Integer value) {
            addCriterion("number <=", value, "number");
            return (Criteria) this;
        }

        public Criteria andNumberIn(List<Integer> values) {
            addCriterion("number in", values, "number");
            return (Criteria) this;
        }

        public Criteria andNumberNotIn(List<Integer> values) {
            addCriterion("number not in", values, "number");
            return (Criteria) this;
        }

        public Criteria andNumberBetween(Integer value1, Integer value2) {
            addCriterion("number between", value1, value2, "number");
            return (Criteria) this;
        }

        public Criteria andNumberNotBetween(Integer value1, Integer value2) {
            addCriterion("number not between", value1, value2, "number");
            return (Criteria) this;
        }

        public Criteria andAlertNumberIsNull() {
            addCriterion("alert_number is null");
            return (Criteria) this;
        }

        public Criteria andAlertNumberIsNotNull() {
            addCriterion("alert_number is not null");
            return (Criteria) this;
        }

        public Criteria andAlertNumberEqualTo(Integer value) {
            addCriterion("alert_number =", value, "alertNumber");
            return (Criteria) this;
        }

        public Criteria andAlertNumberNotEqualTo(Integer value) {
            addCriterion("alert_number <>", value, "alertNumber");
            return (Criteria) this;
        }

        public Criteria andAlertNumberGreaterThan(Integer value) {
            addCriterion("alert_number >", value, "alertNumber");
            return (Criteria) this;
        }

        public Criteria andAlertNumberGreaterThanOrEqualTo(Integer value) {
            addCriterion("alert_number >=", value, "alertNumber");
            return (Criteria) this;
        }

        public Criteria andAlertNumberLessThan(Integer value) {
            addCriterion("alert_number <", value, "alertNumber");
            return (Criteria) this;
        }

        public Criteria andAlertNumberLessThanOrEqualTo(Integer value) {
            addCriterion("alert_number <=", value, "alertNumber");
            return (Criteria) this;
        }

        public Criteria andAlertNumberIn(List<Integer> values) {
            addCriterion("alert_number in", values, "alertNumber");
            return (Criteria) this;
        }

        public Criteria andAlertNumberNotIn(List<Integer> values) {
            addCriterion("alert_number not in", values, "alertNumber");
            return (Criteria) this;
        }

        public Criteria andAlertNumberBetween(Integer value1, Integer value2) {
            addCriterion("alert_number between", value1, value2, "alertNumber");
            return (Criteria) this;
        }

        public Criteria andAlertNumberNotBetween(Integer value1, Integer value2) {
            addCriterion("alert_number not between", value1, value2, "alertNumber");
            return (Criteria) this;
        }

        public Criteria andIsEffecticeIsNull() {
            addCriterion("is_effectice is null");
            return (Criteria) this;
        }

        public Criteria andIsEffecticeIsNotNull() {
            addCriterion("is_effectice is not null");
            return (Criteria) this;
        }

        public Criteria andIsEffecticeEqualTo(Integer value) {
            addCriterion("is_effectice =", value, "isEffectice");
            return (Criteria) this;
        }

        public Criteria andIsEffecticeNotEqualTo(Integer value) {
            addCriterion("is_effectice <>", value, "isEffectice");
            return (Criteria) this;
        }

        public Criteria andIsEffecticeGreaterThan(Integer value) {
            addCriterion("is_effectice >", value, "isEffectice");
            return (Criteria) this;
        }

        public Criteria andIsEffecticeGreaterThanOrEqualTo(Integer value) {
            addCriterion("is_effectice >=", value, "isEffectice");
            return (Criteria) this;
        }

        public Criteria andIsEffecticeLessThan(Integer value) {
            addCriterion("is_effectice <", value, "isEffectice");
            return (Criteria) this;
        }

        public Criteria andIsEffecticeLessThanOrEqualTo(Integer value) {
            addCriterion("is_effectice <=", value, "isEffectice");
            return (Criteria) this;
        }

        public Criteria andIsEffecticeIn(List<Integer> values) {
            addCriterion("is_effectice in", values, "isEffectice");
            return (Criteria) this;
        }

        public Criteria andIsEffecticeNotIn(List<Integer> values) {
            addCriterion("is_effectice not in", values, "isEffectice");
            return (Criteria) this;
        }

        public Criteria andIsEffecticeBetween(Integer value1, Integer value2) {
            addCriterion("is_effectice between", value1, value2, "isEffectice");
            return (Criteria) this;
        }

        public Criteria andIsEffecticeNotBetween(Integer value1, Integer value2) {
            addCriterion("is_effectice not between", value1, value2, "isEffectice");
            return (Criteria) this;
        }

        public Criteria andPartStatusIsNull() {
            addCriterion("part_status is null");
            return (Criteria) this;
        }

        public Criteria andPartStatusIsNotNull() {
            addCriterion("part_status is not null");
            return (Criteria) this;
        }

        public Criteria andPartStatusEqualTo(Integer value) {
            addCriterion("part_status =", value, "partStatus");
            return (Criteria) this;
        }

        public Criteria andPartStatusNotEqualTo(Integer value) {
            addCriterion("part_status <>", value, "partStatus");
            return (Criteria) this;
        }

        public Criteria andPartStatusGreaterThan(Integer value) {
            addCriterion("part_status >", value, "partStatus");
            return (Criteria) this;
        }

        public Criteria andPartStatusGreaterThanOrEqualTo(Integer value) {
            addCriterion("part_status >=", value, "partStatus");
            return (Criteria) this;
        }

        public Criteria andPartStatusLessThan(Integer value) {
            addCriterion("part_status <", value, "partStatus");
            return (Criteria) this;
        }

        public Criteria andPartStatusLessThanOrEqualTo(Integer value) {
            addCriterion("part_status <=", value, "partStatus");
            return (Criteria) this;
        }

        public Criteria andPartStatusIn(List<Integer> values) {
            addCriterion("part_status in", values, "partStatus");
            return (Criteria) this;
        }

        public Criteria andPartStatusNotIn(List<Integer> values) {
            addCriterion("part_status not in", values, "partStatus");
            return (Criteria) this;
        }

        public Criteria andPartStatusBetween(Integer value1, Integer value2) {
            addCriterion("part_status between", value1, value2, "partStatus");
            return (Criteria) this;
        }

        public Criteria andPartStatusNotBetween(Integer value1, Integer value2) {
            addCriterion("part_status not between", value1, value2, "partStatus");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}